<template>
<span class="op_dir-wrapper">
  <component v-if='components_name' :is='components_name' ></component>
</span>
</template>
<script>
    import tool from 'src/util/tool';
    import util from '_util/index';
    import logic from '_logic';
    import in_array from 'in_array';

    import Export from './Export.vue';

    export default {
        data() {
            return {}
        },
        components: {
            Export
        },
        methods: {},
        computed: {
            ctl(){
                return this.$route.query.ctl;
            },
            is_admin(){
                return util.is_admin(this);
            },
            components_name() {
                let arr = ['Export']
                if (in_array(this.ctl, arr))
                    return this.ctl;
                else
                    return null;
            }
        },
        watch: {
        },

        props: [],
        created() {
        },
    }
</script>
<style rel="stylesheet/less" lang="less">@dir: "header/";</style>
